import 'babel-polyfill'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import echarts from 'echarts'
import './common/font.css'
// 0.1 饿了么UI ------------------------------------------------
import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import '../theme/index.css';
Vue.use(ElementUI);


// 0.2 echarts 图表 --------------------------------------------
Vue.prototype.$echarts = echarts;

// 3.0 全局组件 ------------------------------------------------
import BasicInfoNavigation from './components/BasicInfoNavigation.vue';
Vue.component('basic-info-navigation',BasicInfoNavigation);

import BaseInfoView from './components/BaseInfoView.vue';
Vue.component('base-info-view',BaseInfoView);

import BasicInfoEdit from './components/BasicInfoEdit.vue';
Vue.component('basic-info-edit',BasicInfoEdit);

import BasicInfoFormValue from './components/BasicInfoFormValue.vue';
Vue.component('basic-info-form-value',BasicInfoFormValue);

import BaseInfoSecondary from './components/BaseInfoSecondary.vue';
Vue.component('base-info-secondary',BaseInfoSecondary);

import BaseInfoImport from './components/BaseInfoImport.vue';
Vue.component('base-info-import',BaseInfoImport);

import BaseInfoPreview from './components/BaseInfoPreview.vue';
Vue.component('base-info-preview',BaseInfoPreview);




// 4.0 过滤器 --------------------------------------------------


// 5.0 创建全局$api对象 ------------------------------------------
import * as Api from './service/api.js'
Vue.prototype.$api = Api



Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
